<head>
	<meta name='layout' content='main' />
	<title>Login</title>
	<script type='text/javascript'>
	<!--
	function init()
	{
		document.forms['loginForm'].elements['j_username'].focus();
	};
	// -->
	</script>
</head>

<body onload="init();">

	<div class="body">

		<h1>Anmeldung</h1>

		<g:if test="${flash.message}">
		<div class="message">${flash.message}</div>
		</g:if>
		
		<form action='${postUrl}' method='POST' id='loginForm' class='cssform'>
			<div class="dialog">
				<table>
				<tbody>
				
					<tr class="prop">
						<td valign="top" class="name"><label for="j_username">Login:</label></td>
						<td valign="top" class="value">
							<input type='text' class='text_' name='j_username' id='j_username' value='${request.remoteUser}' />
						</td>
					</tr>
					
					<tr class="prop">
						<td valign="top" class="name"><label for="j_password">Passwort:</label></td>
						<td valign="top" class="value">
							<input type='password' class='text_' name='j_password' id='j_password' />
						</td>
					</tr>
					
					<tr class="prop">
						<td valign="top" class="name"><label for="_spring_security_remember_me">Remember me:</label></td>
						<td valign="top" class="value">
							<input type='checkbox' class='chk' name='_spring_security_remember_me' id='remember_me'
							<g:if test='${hasCookie}'>checked='checked'</g:if> />
						</td>
					</tr>
				
				</tbody>
				</table>

				<div class="buttons">
					<span class="button"><input class="save" type="submit" value="Login" /></span>
				</div>
			</div>
		</form>
	</div>
</body>
